import request from "@/request/request.js";

export const getAddressXY = (address) => {
    return request({
        url: '/map/addressToLongitude',
        method: 'post',
        params:{
            address:address
        }
    })
}
export const getDistance = data =>{
    return request({
        url: '/map/getDistance',
        method: 'post',
        data:data
    })
}
export const batteryTypeList = data =>{
    return request({
        url: '/battery/getBatteryTypeList',
        method: 'post',
        data:data
    })
}